package com.ljd.repository;

import com.ljd.entity.Borrow;

import java.util.List;

public interface BorrowRepository {
    public void insert(Integer bookid, Integer readerid, String borrowtime, String returntime, Integer adminid);
    public List<Borrow> findAllByReaderId(Integer readerid, Integer index, Integer limit);
    public List<Borrow> findAllByState(Integer state, Integer index, Integer limit);
    public Integer getCountByReaderid(Integer readerid);
    public Integer getCountByState(Integer state);
    public void handleBorrow(Integer borrowid, Integer state, Integer adminid);
}
